package com.ggqq.sort;

import java.util.Scanner;

public class DuoYi {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        System.out.println(n +"=");
        for(int i = 2;i<n;i++){
            while(n%i == 0 && i != n){
                n/=i;
                System.out.print(i+"*");
            }
            if(n == i){
                System.out.print(i);
                break;
            }
        }

    }
}
